<template>
  <div>
    登录
    <button @click="set">test</button>
  </div>
</template>

<script>
  export default {
    name: 'datamanage',
    data:function(){
      return{
        cssdis:false
      }
    },
    methods :{
      add:function () {
        this.cssdis = true;
        console.log(555);
      },
      disnone:function () {
        this.cssdis = false;
      },
      set:function () {
        localStorage.setItem('username',5656);
        console.log(localStorage.getItem('username'));
        window.location.reload();

      }
    },
    created:function(){
      this.$http.get("http://jsonplaceholder.typicode.com/users").then((data)=>{
        console.log(data.body[0])


      })
    }
  }
</script>

<style>

</style>
